const { queryError } = require("../../constant/err.type");

const { querySuccess } = require("../../constant/success.type");

const {
  getStatisticalChartTable,
} = require("../../service/common/statistical-chart-table.service");

class StatisticalChartTableController {
  async getStatisticalChartTable(ctx, nuxt) {
    try {
      const db_response = await getStatisticalChartTable();
      querySuccess.result = db_response;
      ctx.body = querySuccess;
    } catch (err) {
      console.log(err);
      ctx.app.emit("error", queryError, ctx);
    }
  }
}
module.exports = new StatisticalChartTableController();
